-- GENERATED SPELL FOR [Binder Murdis] --


function spell0_24334(pUnit, Event) --@Flame Shock,n/a--
pUnit:FullCastSpellOnTarget(15039,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24334', 12000, 1)
end

function spell1_24334(pUnit, Event) --@Rune of Binding,n/a--
pUnit:FullCastSpellOnTarget(48599,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24334', 7000, 1)
end

function Sorts_24334(pUnit, Event)
local choix_sorts_24334 = math.random(0, 1)
if choix_sorts_24334 == 0 then
pUnit:RegisterEvent('spell0_24334', 1, 1)
end
if choix_sorts_24334 == 1 then
pUnit:RegisterEvent('spell1_24334', 1, 1)
end
end

function mob24334_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24334', math.random(1500, 3000), 1)
end

function mob24334_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24334_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24334_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24334, 1, 'mob24334_Action')
RegisterUnitEvent(24334, 2, 'mob24334_Leave')
RegisterUnitEvent(24334, 3, 'mob24334_Kill')
RegisterUnitEvent(24334, 4, 'mob24334_Die')
